<!-- 维保信息 -->
<template>
	<view style="height: 100vh; background-color: #FFFFFF;">
		<u-navbar title-color="#FFFFFF" height="48" back-icon-color="#FFFFFF" :border-bottom="false" :is-fixed="true" :title="'维保详情'"></u-navbar>
		<u-cell-group v-model="Maintenanceinfo">
			<u-cell-item :border-bottom="true" title="企业名称" :value="Maintenanceinfo.enterpriseName" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="设备名称" :value="Maintenanceinfo.equipmentName" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="维保人员" :value="Maintenanceinfo.maintenanceUserName" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="维保时间" :value="Maintenanceinfo.maintenanceTime | dateFormat" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="维保状态" :value="Maintenanceinfo.maintenanceStatus | maintenanceStatus" :arrow="false"></u-cell-item>
			<u-cell-item :border-bottom="true" title="维保描述" :value="Maintenanceinfo.maintenanceRemark" :arrow="false"></u-cell-item>			
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				MaintenanceId:"",
				Maintenanceinfo: []
			}
		},
		// 只加载一次
		onLoad(e) {
			this.maintenanceId = e.ucId
		},
		// 每次打开页面都会刷新
		onShow() {
			this.getEquipmentMaintenanceInfo(this.maintenanceId)
		},
		methods: {
			getEquipmentMaintenanceInfo(val) {
				this.utils.request("/api/app/maintenance/getInEquipmentMaintenanceVo", {ucId: val}, "post", "app", true).then(res => {
					console.log(res)
					this.Maintenanceinfo = res.data
				}).catch(error => {
					console.log(error)
				})
			},
		}
	}
</script>

<style>

</style>
